﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Newtonsoft.Json;

namespace YiWangTongBan
{
    public class customerInfoChangeEntity
    {
        /// <summary>
        ///	申请单唯一ID	/// </summary>
        public string incident_id { get; set; }
        /// <summary>
        ///	统一审批编码	/// </summary>
        public string apply_no { get; set; }
        /// <summary>
        ///	申请人	/// </summary>
        public string applicant { get; set; }
        /// <summary>
        ///	申请时间	/// </summary>
        public string appdate { get; set; }
        /// <summary>
        ///	业务类型	/// </summary>
        public string business_type { get; set; }
        /// <summary>
        ///	纳税人识别号	/// </summary>
        public string social_credit_code { get; set; }
        /// <summary>
        ///	销根号	/// </summary>
        public string card_id { get; set; }
        /// <summary>
        ///	提交渠道	/// </summary>
        public string source { get; set; }
        /// <summary>
        ///	账单送达地址	/// </summary>
        public string send_address { get; set; }
        /// <summary>
        ///	收件人	/// </summary>
        public string receiver { get; set; }
        /// <summary>
        ///	邮编	/// </summary>
        public string yb { get; set; }
        /// <summary>
        ///	备注	/// </summary>
        public string comment { get; set; }
        /// <summary>
        ///	预留字段1	/// </summary>
        public string reserve1 { get; set; }
        /// <summary>
        ///	预留字段2	/// </summary>
        public string reserve2 { get; set; }
        /// <summary>
        ///	预留字段3	/// </summary>
        public string reserve3 { get; set; }


        /// <summary>
        /// 联系人列表
        /// </summary>
        public List<conList> conList { get; set; }
        /// <summary>
        /// 证件列表
        /// </summary>
        public List<CertList> CertList { get; set; }
    }
    public class conList
    {
        /// <summary>
        ///	联系人姓名	 /// </summary>
        public string con_name { get; set; }
        /// <summary>
        ///	联系电话	 /// </summary>
        public string con_value { get; set; }
        /// <summary>
        ///	电子邮箱	 /// </summary>
        public string email { get; set; }

    }
    /// <summary>
    /// 5.12	补寄账单前置查询
    /// </summary>
    public class queryBillEntity
    {
        ///////// <summary>
        /////////	申请人	 /// </summary>
        //////public string applicant { get; set; }
        ///////// <summary>
        /////////	申请人联系方式	 /// </summary>
        //////public string contact_number { get; set; }
        ///////// <summary>
        /////////	申请时间	 /// </summary>
        //////public string appdate { get; set; }
        ///////// <summary>
        /////////	业务类型	 /// </summary>
        //////public string business_type { get; set; }
        /// <summary>
        ///	销根号	 /// </summary>
        public string card_id { get; set; }
        /// <summary>
        ///	预留字段1	 /// </summary>
        public string reserve1 { get; set; }
        /// <summary>
        ///	预留字段2	 /// </summary>
        public string reserve2 { get; set; }
        /// <summary>
        ///	预留字段3	 /// </summary>
        public string reserve3 { get; set; }
    }
    public class queryBillResultEntity
    {
        /// <summary>
        ///	销根号	 /// </summary>
        public string card_id { get; set; }
        /// <summary>
        ///	成功标识	 /// </summary>
        public bool isSuccess { get; set; }
        /// <summary>
        ///	状态码	 /// </summary>
        public int code { get; set; }
        /// <summary>
        ///	错误代码	 /// </summary>
        public string errCode { get; set; }
        /// <summary>
        ///	错误信息	 /// </summary>
        public string message { get; set; }
        /// <summary>
        /// 账单列表
        /// </summary>
        public List<billList> billList { get; set; }
    }
    public class billList
    {
        /// <summary>
        ///	账单年月	 /// </summary>
        public string bill_month { get; set; }
        /// <summary>
        ///	账单金额	 /// </summary>
        public string money { get; set; }
        /// <summary>
        ///	付费标志	 /// </summary>
        public string pay_status { get; set; }
        /// <summary>
        /// 开票状态 1：开票成功；2：开票失败
        /// </summary>
        public string invoice_status { get; set; }
        /// <summary>
        /// 开票说明 开票失败原因说明
        /// </summary>
        public string invoice_comment { get; set; }

    }

    public class payNoticeRemailEntity
    {
        /// <summary>
        ///	申请单唯一ID	/// </summary>
        public string incident_id { get; set; }
        /// <summary>
        ///	统一审批编码	/// </summary>
        public string apply_no { get; set; }
        /// <summary>
        ///	申请人	/// </summary>
        public string applicant { get; set; }
        /// <summary>
        ///	申请人联系方式	/// </summary>
        public string contact_number { get; set; }
        /// <summary>
        ///	申请时间	/// </summary>
        public string appdate { get; set; }
        /// <summary>
        ///	业务类型	/// </summary>
        public string business_type { get; set; }
        /// <summary>
        ///	销根号	/// </summary>
        public string card_id { get; set; }
        /// <summary>
        ///	提交渠道	/// </summary>
        public string source { get; set; }
        /// <summary>
        ///	缴费通知单类型	/// </summary>
        public string notice_type { get; set; }
        /// <summary>
        ///	预留字段1	/// </summary>
        public string reserve1 { get; set; }
        /// <summary>
        ///	预留字段2	/// </summary>
        public string reserve2 { get; set; }
        /// <summary>
        ///	预留字段3	/// </summary>
        public string reserve3 { get; set; }


        /// <summary>
        /// 账单年月
        /// </summary>
        public List<billList> bill_month { get; set; }

        /// <summary>
        /// 证件列表
        /// </summary>
        public List<CertList> CertList { get; set; }

    }
    /// <summary>
    /// 电子发票前置查询
    /// </summary>
    public class queryInvoiceEntity
    {
        /// <summary>
        ///	起始年月	 /// </summary>
        public string start_date { get; set; }
        /// <summary>
        ///	结束年月	 /// </summary>
        public string end_date { get; set; }
        /// <summary>
        ///	销根号	 /// </summary>
        public string card_id { get; set; }
    }

    public class queryInvoiceResultEntity
    {
        /// <summary>
        ///	销根号	/// </summary>
        public string card_id { get; set; }
        /// <summary>
        ///	成功标识	/// </summary>
        public bool isSuccess { get; set; }
        /// <summary>
        ///	状态码	/// </summary>
        public int code { get; set; }
        /// <summary>
        ///	是否有自动推送业务	/// </summary>
        public string elecInvoiceAutoPush { get; set; }
        /// <summary>
        ///	联系电话	/// </summary>
        public string contact_number { get; set; }
        /// <summary>
        ///	邮箱	/// </summary>
        public string email { get; set; }
        /// <summary>
        ///	纳税人识别号	/// </summary>
        public string nsrsbh { get; set; }
        /// <summary>
        ///	发票抬头	/// </summary>
        public string fptt { get; set; }
        /// <summary>
        ///	注册地址	/// </summary>
        public string post_address { get; set; }

        /// <summary>
        /// 发票电话号码
        /// </summary>
        public string contact_invoice { get; set; }

        /// <summary>
        ///	开户行	/// </summary>
        public string open_bank { get; set; }
        /// <summary>
        ///	开户行账号	/// </summary>
        public string bank_card_no { get; set; }
        /// <summary>
        ///	错误代码	/// </summary>
        public string errCode { get; set; }
        /// <summary>
        ///	错误信息	/// </summary>
        public string message { get; set; }


        /// <summary>
        /// 账单详情
        /// </summary>
        public List<billInfo> billInfo { get; set; }

    }

    public class billInfo
    {
        /// <summary>
        ///	户名	 /// </summary>
        public string user_name { get; set; }
        /// <summary>
        ///	用水地址	 /// </summary>
        public string shw_address { get; set; }
        /// <summary>
        ///	账单金额	 /// </summary>
        public string money { get; set; }
        /// <summary>
        ///	账单年月	 /// </summary>
        public string bill_date { get; set; }
        /// <summary>
        ///	预留字段1	 /// </summary>
        public string reserve1 { get; set; }
        /// <summary>
        ///	预留字段2	 /// </summary>
        public string reserve2 { get; set; }
        /// <summary>
        ///	预留字段3	 /// </summary>
        public string reserve3 { get; set; }

    }

    public class elecInvoiceAutoPushEntity
    {
        /// <summary>
        ///	申请单唯一ID	 /// </summary>
        public string incident_id { get; set; }
        /// <summary>
        ///	统一审批编码	 /// </summary>
        public string apply_no { get; set; }
        /// <summary>
        ///	申请人	 /// </summary>
        public string applicant { get; set; }
        /// <summary>
        ///	申请时间	 /// </summary>
        public string appdate { get; set; }
        /// <summary>
        ///	业务类型	 /// </summary>
        public string business_type { get; set; }
        /// <summary>
        ///	销根号	 /// </summary>
        public string card_id { get; set; }

        /// <summary>
        ///	提交渠道1：一网通办网站，5: 微信小程序，6: 支付宝小程序，7: 市民云 90. 水务官网, 91. 水务微信小程序, 92. 水务App
        /// </summary>
        public string source { get; set; }

        /// <summary>
        ///	用水地址	 /// </summary>
        public string address { get; set; }
        ///////// <summary>
        /////////	发票电话号码	 /// </summary>
        //////public string contact_invoice { get; set; }
        /// <summary>
        ///	纳税人识别号	 /// </summary>
        public string social_credit_code { get; set; }
        /// <summary>
        ///	联系电话	 /// </summary>
        public string contact_number { get; set; }
        /// <summary>
        ///	邮箱	 /// </summary>
        public string email { get; set; }
        /// <summary>
        ///	申请类型	 /// </summary>
        public string apply_type { get; set; }

        /// <summary>
        /// 发票电话
        /// </summary>
        public string contact_invoice { get; set; }

        /// <summary>
        ///	注册地址	/// </summary>
        public string zcdz { get; set; }
        /// <summary>
        ///	发票抬头	/// </summary>
        public string fptt { get; set; }
        /// <summary>
        ///	开户行	/// </summary>
        public string khh { get; set; }
        /// <summary>
        ///	银行卡号	/// </summary>
        public string khhzh { get; set; }

        /// <summary>
        /// 申请人证件类型
        /// </summary>
        public string cert_type { get; set; }
        /// <summary>
        /// 申请人证件号码
        /// </summary>
        public string cert_number { get; set; }
        
        /// <summary>
        ///	预留字段1	 /// </summary>
        public string reserve1 { get; set; }
        /// <summary>
        ///	预留字段2	 /// </summary>
        public string reserve2 { get; set; }
        /// <summary>
        ///	预留字段3	 /// </summary>
        public string reserve3 { get; set; }

        /// <summary>
        /// 证件列表
        /// </summary>
        public List<CertList> CertList { get; set; }
    }

    /// <summary>
    /// 电子发票单次获取
    /// </summary>
    public class elecInvoiceObtainEntity
    {
        /// <summary>
        ///	申请单唯一ID	/// </summary>
        public string incident_id { get; set; }
        /// <summary>
        ///	统一审批编码	/// </summary>
        public string apply_no { get; set; }
        /// <summary>
        ///	申请人	/// </summary>
        public string applicant { get; set; }
        /// <summary>
        ///	申请时间	/// </summary>
        public string appdate { get; set; }
        /// <summary>
        ///	业务类型	/// </summary>
        public string business_type { get; set; }
        /// <summary>
        ///	销根号	/// </summary>
        public string card_id { get; set; }
        /// <summary>
        ///	提交渠道	/// </summary>
        public string source { get; set; }
        /// <summary>
        ///	户名	/// </summary>
        public string user_name { get; set; }
        /// <summary>
        ///	用水地址	/// </summary>
        public string shw_address { get; set; }
        /////// <summary>
        ///////	账单年月	/// </summary>
        ////public string bill_month { get; set; }
        /////// <summary>
        ///////	账单金额	/// </summary>
        ////public string money { get; set; }
        /// <summary>
        ///	注册地址	/// </summary>
        public string post_address { get; set; }
        /// <summary>
        ///	发票电话号码	/// </summary>
        public string contact_invoice { get; set; }
        /// <summary>
        ///	企业名称	/// </summary>
        public string company_name { get; set; }
        /// <summary>
        ///	联系电话	/// </summary>
        public string contact_number { get; set; }
        /// <summary>
        ///	邮箱	/// </summary>
        public string email { get; set; }
        /// <summary>
        ///	纳税人识别号	/// </summary>
        public string nsrsbh { get; set; }
        /// <summary>
        ///	发票抬头	/// </summary>
        public string fptt { get; set; }
        /// <summary>
        ///	开户行	/// </summary>
        public string open_bank { get; set; }
        /// <summary>
        ///	银行卡号	/// </summary>
        public string bank_card_no { get; set; }
        /// <summary>
        ///	预留字段1	/// </summary>
        public string reserve1 { get; set; }
        /// <summary>
        ///	预留字段2	/// </summary>
        public string reserve2 { get; set; }
        /// <summary>
        ///	预留字段3	/// </summary>
        public string reserve3 { get; set; }

        /// <summary>
        /// 账单列表
        /// </summary>
        public List<billList> billList { get; set; }

        /// <summary>
        /// 证件列表
        /// </summary>
        public List<CertList> CertList { get; set; }
    }
    public class elecInvoiceObtainResultEntity
    {
        /// <summary>
        /// 申请单唯一ID
        /// </summary>
        public string incident_id { get; set; }
        /// <summary>
        /// 成功标识
        /// </summary>
        public bool isSuccess { get; set; }
        /// <summary>
        /// 状态码
        /// </summary>
        public int code { get; set; }


        /// <summary>
        /// 错误代码
        /// </summary>
        public string errCode { get; set; }
        /// <summary>
        /// 错误信息
        /// </summary>
        public string message { get; set; }
        /// <summary>
        /// 账单列表
        /// </summary>
        public List<billList> billList { get; set; }
    }
}